package org.idea.qiyu.framework.rocketmq.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author linhao
 * @Date created in 8:54 上午 2021/6/29
 */
@ConfigurationProperties(prefix = "qiyu.rocketmq.consumer")
public class RocketMqConsumerProperties {

    private String nameSrv;

    private String groupName;

    private Integer consumeThreadMin;

    private Integer consumeThreadMax;

    private String topic;

    private Integer consumeMessageBatchMaxSize;

    public String getNameSrv() {
        return nameSrv;
    }

    public void setNameSrv(String nameSrv) {
        this.nameSrv = nameSrv;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Integer getConsumeThreadMin() {
        return consumeThreadMin;
    }

    public void setConsumeThreadMin(Integer consumeThreadMin) {
        this.consumeThreadMin = consumeThreadMin;
    }

    public Integer getConsumeThreadMax() {
        return consumeThreadMax;
    }

    public void setConsumeThreadMax(Integer consumeThreadMax) {
        this.consumeThreadMax = consumeThreadMax;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public Integer getConsumeMessageBatchMaxSize() {
        return consumeMessageBatchMaxSize;
    }

    public void setConsumeMessageBatchMaxSize(Integer consumeMessageBatchMaxSize) {
        this.consumeMessageBatchMaxSize = consumeMessageBatchMaxSize;
    }

    @Override
    public String toString() {
        return "RocketMqConsumerProperties{" +
                "nameSrv='" + nameSrv + '\'' +
                ", groupName='" + groupName + '\'' +
                ", consumeThreadMin=" + consumeThreadMin +
                ", consumeThreadMax=" + consumeThreadMax +
                ", topic='" + topic + '\'' +
                ", consumeMessageBatchMaxSize=" + consumeMessageBatchMaxSize +
                '}';
    }
}
